adTempus API
PreviousUpNext
IExecutionHistoryStep::ExitCode Property

Gets the exit code or other result value for the task.

C++
__property BSTR* ExitCode;
C#
BSTR* ExitCode;
Visual Basic
Property ExitCode() As BSTR*

The value in the ExitCode property depends on the kind of task run by the step:

  • For a ProgramExecutionTask the ExitCode is the numeric exit code (return code) for the process run by the step.
  • For a ScriptExecutionTask the ExitCode is the numeric or string result value set by the script, or Null if the script did not set a result.
  • For a CustomTask, the Result depends on the task.
  • For other tasks, the Result is meaningless and will be empty.

adTempus API Reference version 3.0.0.0, revised 10/30/2008